package ar.edu.unlam.lyc.qeneradorDeCodigo;

import java.util.Iterator;
import java.util.LinkedList;

import ar.edu.unlam.lyc.utilitarios.Sentencia;

public class ListaSentencias {
	private static LinkedList instance = new LinkedList();
	
	private ListaSentencias(){
		
	}
	
	public static LinkedList getInstance(){
		return instance;
	}
	
	public static void mostrar(){
		Iterator iter = instance.iterator();
		while(iter.hasNext()){
			Sentencia s = (Sentencia)iter.next();
			System.out.println(s);
		}
	}

	public static void resetInstance() {
		instance = new LinkedList();
		
	}
	
}
